package com.youlai.boot.system.model.form;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 用户表单对象
 *
 * @author haoxr
 * @since 2022/4/12 11:04
 */
@Schema(description = "用户表单对象")
@Data
public class UserDataScopeFrom {

    @Schema(description = "用户ID")
    @NotNull(message = "用户ID不能为空")
    private Long id;

    @Schema(description = "用户数据权限标识")
    @NotNull(message = "用户数据权限标识不能为空 0关闭 1开启")
    private Integer scopeFlag;

    @Schema(description = "旅行社ID集合")
    //@NotEmpty(message = "旅行社集合不能为空")
    private List<Long> deptIds;

    @Schema(description = "旅行社ID字符串")
    //@NotBlank(message = "旅行社ID字符串不能为空")
    private String deptIdStr;
}
